#include <iostream>
#include "vector"
using namespace std;

static vector<vector<int>> aa;

class Person {
public:
//    static vector<vector<int>> aaa;
    static vector<int> aaaa;
    vector<vector<int>> bbb;
    static void test();
};

vector<int> Person::aaaa = {1, 2, 3};  // 必须初始化

void Person::test() {
    Person::aaaa.resize(2);
}

int main() {
    std::cout << "Hello, World!" << std::endl;


    Person *p = new Person();
    p->bbb.resize(3);
    p->bbb[0] = {100};
    std::cout << p->bbb[0][0] << std::endl;


//    Person::aaa.resize(3);
//    Person::aaa[0] = {100};
//    std::cout << Person::aaa[0][0] << std::endl;


    Person::aaaa.resize(2);
    Person::aaaa = {100, 200};
//    Person::aaaa[0] = 1000;
    std::cout << Person::aaaa[0] << std::endl;

    aa.resize(3);
    aa[0] = {1};
    std::cout << aa[0][0] << std::endl;

    std::vector<std::vector<std::vector<double>>> bbbb(3);
    bbbb[0].resize(5);
    bbbb[0][1] = {1, 2, 3, 4};
    bbbb[0][2] = {2, 3, 4, 5};



    // 测试数据合并
    vector<float> newList;
    vector<float> aaaaa;
    aaaaa.push_back(1);
    aaaaa.push_back(2);
    aaaaa.push_back(3);
    vector<float> bbbbb;
    bbbbb.push_back(4);
    bbbbb.push_back(5);
    bbbbb.push_back(6);
    newList.insert(newList.end(), aaaaa.begin(), aaaaa.end());
    newList.insert(newList.end(), bbbbb.begin(), bbbbb.end());
    std::cout << aaaaa.size();

    return 0;
}
